<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set value="${pageContext.request.contextPath}" var="path"
	scope="page" />
<!--文章审核-->
<div class="main_tag">求知广场管理>博客管理</div>
<div class="sysm1_udiv">
	<c:choose>
		<c:when test="${empty(page.list)}">还没有用户使用博客哦！！！</c:when>
		<c:otherwise>
			<table class="sysm1_utable" id="blog_table">
				<tr>
					<th>日期</th>
					<th>博客标题</th>
					<th>作者</th>
					<th>点击数</th>
					<th>审核状态</th>
					
				</tr>
				<!--读取循环-->
				<c:forEach var="blog" items="${page.list}">
					<tr>
						<td>${blog.time}</td>
						<td><a class="article" style="cursor:pointer;">${blog.title}</a>
						<input type="hidden" value="${blog.blogId}" id="article_id"  /></td>
						<td>${blog.author}</td>
						<td>${blog.click}</td>
						<td>${blog.checked==true?"<i class='icon-ok'></i>":"<i class='icon-remove'></i>"}</td>
						
					</tr>
				</c:forEach>
			</table>
			<jsp:include page="pager.jsp"></jsp:include>
		</c:otherwise>
	</c:choose>
</div>
<Script>

	$("#blog_table").find("a.article").click(function(){
		var blogId = $(this).next().val();
		$("#load").load("${path}/ShowBlogContentControllor",{blogId:blogId});
	});
	
	

	$("table tr").mouseover(function() {
		$(this).css("background", "#F3F3F3");
	});
	$("table tr").mouseout(function() {
		$(this).css("background", "");
	});


</Script>